package com.basic.business.print.domain;

import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 业务-订单印刷品对象 t_orders_print
 * 
 * @author zhaoxy_jn@163.com
 * @date 2025-02-24
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TOrdersPrint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 印刷品编码 */
    @ExcelProperty(value = "印刷品编码")
    private String printCode;

    /** 状态 正常：NORMAL 删除：DELETED */
    @ExcelProperty(value = "状态 正常：NORMAL 删除：DELETED")
    private String printStatus;

    /** 用户id */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /** 部门id */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
